#include"Udpserver.hpp"


int main(int argc,char *argv[])
{
    if(argc!=3)
    {
        std::cout<<"ip port"<<std::endl;
        return 1;
    }
    uint16_t  port = std::stoi(argv[2]);
    std::string ip = argv[1];
    std::unique_ptr<Udpserver> svr_ptr = std::make_unique<Udpserver>(ip,port);
    svr_ptr->Init();
    svr_ptr->Start();
    return 0;
}